package com.springlearn.springsecurity.mapper;

import com.springlearn.springsecurity.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * @author llj
 * @create 2022-04-19 20:54
 */

@Mapper
@Repository
public interface UserMapper {

    @Select("select * from user where username = #{name}")
    User getUserByUserName(String name);

}
